package com.park.platform.service;

import com.park.common.poo.UserCollector;
import com.park.common.poo.UserOperator;
import com.park.common.poo.UserSign;
import com.park.wx.pojo.SNSUserInfo;

import java.util.List;
import java.util.Map;

public interface IOperatorService {

	public UserOperator getUserOperator(int id);

	public Integer getNowDatePoint(int id);

	public UserOperator getOperator(String openId);

	public UserOperator login(String mobile, String pwd);

	public void addUserOperator(UserOperator userOperator);

	public void addAdminUserOperator(UserOperator userOperator);

	public void deleteAdminUserOperator(int id);

	public void registerCaptcha(UserOperator userOperator);

	public UserOperator getUserOperatorByMobile(String mobile);

	public UserOperator getUserOperatorByName(String name);

	public void updateUserSign(UserSign userSign) throws Exception;

	public void newCollector(UserCollector userCollector);

	public UserCollector getUserCollector(String serviceType, int serviceId, int uid);

	public UserOperator getUserOperator(String no);

	public UserOperator getUserOperatorByFenxiao(String no);

	public List<UserOperator> getUserOperatorBySubordinate(String no);

	public List<UserOperator> getUserOperatorListByFenxiao();

	/***********************************************************************/

	public UserOperator loginIn(String mobile, String pwd);

	public void updatePassword(String oldPwd, String newPwd, int uid);

	public List<UserOperator> getSuperior(int uid);

	public Map<String, List<UserOperator>> getSubordinate(int uid);

	public void updateUserFenxiao(int uid, int subUid);

	public void deleteUserFenxiao(int uid, int subUid);

	public void newCommission(int uid, double commission);

	/**********************************************************************/
	public UserOperator saveShareOperator(String shareOpenId, SNSUserInfo snsUserInfo);

	public void newAddOperatorPoint();
	
}
